package helipay.api.util;

import com.thoughtworks.xstream.XStream;
public class XmlUtils {

	private static XStream xstream = new XStream();

	static {
		xstream.alias("；", Object.class);
	}

	/**
	 * java bean 转换 xml 格式
	 * 
	 * @param object
	 * @return
	 */
	public static String toXml(Object object) {

		if(object == null){
			return "";
		}
		return xstream.toXML(object);
	}

}
